<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>v-html指令</title>
</head>
<body>
    <script src="/js/vue.js"></script>
    <div id ="app">
       <p v-html="msg"></p >
    </div>
    
    <script>
       let app =new Vue({
         el:"#app",
         data:{
           msg:'<h1>Hello China!</h1>'
         }
       })
    </script> 
    
</body>
</html>